<?php
/* SVN FILE: $Id: error.php 116 2007-04-16 21:10:00Z Andy $ */

/**
 * Short description for file.php.
 *
 * Long description for file
 *
 * PHP versions 4 and 5
 *
 * Copyright (c), Andy Dawson
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @filesource
 * @copyright    Copyright (c) 2007, Andy Dawson
 * @package      noswad
 * @subpackage   noswad.generic
 * @since        Noswad site version 3
 * @todo         TODO Edit this block
 * @version      $Revision: 116 $
 * @created      26/01/2007
 * @modifiedby   $LastChangedBy$
 * @lastmodified $Date: 2007-04-16 23:10:00 +0200 (lun, 16 abr 2007) $
 * @license      http://www.opensource.org/licenses/mit-license.php The MIT License
 */

/**
 * Short description for Class
 *
 * Long descrption of Class
 */

/**
 * Description for var
 *
 * @var type
 * @access public/private/protected
 */

/**
 * Description for method
 *
 * @param type $name description
 * @return type description
 */
if (!class_exists('AppError')) {
uses('error');
class AppError extends ErrorHandler {

	function error($params) {
		$this->controller->plugin = basename(dirname(__FILE__));
		$this->controller->layout = 'noswad_error';
		parent::error($params);
	}

	function error404($params) {
		$this->controller->plugin = basename(dirname(__FILE__));
		$this->controller->layout = 'noswad_error';
		parent::error404($params);
	}

	function missingConnection($params) {
		$this->controller->plugin = basename(dirname(__FILE__));
		$this->controller->layout = 'noswad_error';
		parent::missingConnection($params);
	}

	function missingTable($params) {
		$this->controller->plugin = basename(dirname(__FILE__));
		$this->controller->layout = 'noswad_error';
		parent::missingTable($params);
	}

	function missingHelperFile($params) {
		$this->controller->plugin = basename(dirname(__FILE__));
		$this->controller->layout = 'noswad_error';
		parent::missingHelperFile($params);
	}

	function missingComponentFile($params) {
		$this->controller->plugin = basename(dirname(__FILE__));
		$this->controller->layout = 'noswad_error';
		parent::missingComponentFile($params);
	}
}
}
?>